package cn.ch.pet.domain;

import cn.ch.basic.domain.Base;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author Why
 * @since 2022-02-24
 */
@Data
public class PetType extends Base{

    private static final long serialVersionUID = 1L;

    private String name;
    private String description;
    /**
     * 父类型id
     */
    private Long pid;

    /**
     * 做无线级树
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)//打上注解是为了限制层数
    List<PetType> children = new ArrayList<>();//
}
